<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
/*		div{
			width: 300px;
			height: 300px;
			background: rgba(0, 0, 0, 3);

		}*/
		.a{
			width: 100px;
			height: 100px;
			border: 2px solid #ccc;	
			background: url('a.jpg') no-repeat center;	
			/*background-size: contain;*/
			background-size: 100%;

		}
		.b{
			width: 300px;
			height: 300px;
			border: 2px solid #ccc;	
			background: url('b.jpg') no-repeat center;	
			/*background-repeat: no-repeat;*/	
			/*background-position: center;*/
			/*background-position: 50%;*/
			/*background-size: contain;*/
			/*background-size: cover;*/
			background-size: 50%;
		}
		.list{
			width: 800px;
			height: 300px;
			border: 2px solid #ccc;	
			background: url('b.jpg') no-repeat  right;
			line-height: 300px;

		}
	</style>
</head>
<body>


<div class='a'></div>
<div class='b'></div>
<div class='list'>
	<span>1234567</span>
</div>

</body>
</html>